﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class aspx_admin_hdly_view : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        int id = (int)e.Keys["活动掠影ID"];
        using (ds_名师讲堂TableAdapters.tb_活动掠影TableAdapter da = new ds_名师讲堂TableAdapters.tb_活动掠影TableAdapter())
        {

            WebHelper.FileAndDirectory.DeleteFile((da.GetDataBy活动掠影ID(id).Rows[0] as ds_名师讲堂.tb_活动掠影Row).小图片);
         
        }
        WebHelper.MessageBox.Show("删除成功！", true);
    }
    protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
    {
        Response.Redirect(string.Format("edit.aspx?id={0}", this.GridView1.Rows[e.NewEditIndex].Cells[0].Text));
    }
}